import request from '@/utils/request'

export default {
  getPageList(current, limit) {
    return request({
      url: `/eduService/front/getFrontList/${current}/${limit}`,
      method: 'post'
    })
  },
  getTeacherInfo(teacherId) {
    return request({
      url: `/eduService/front/getTeacherInfo/${teacherId}`,
      method: 'get'
    })
  },
  getCourseList(current, limit,searchObj) {
    return request({
      url: `/eduService/front/getCourseList/${current}/${limit}`,
      method: 'post',
      data:searchObj
    })
  },
  getSortCourseInfo(current, limit,sortId) {
    return request({
      url: `/eduService/front/getSortCourseInfo/${current}/${limit}/${sortId}`,
      method: 'post',
    })
  },
  getSubjects() {
    return request({
      url: `/eduService/subject/getSubjects`,
      method: 'get'
    })
  },
  getCourseInfo(courseId) {
    return request({
      url: `/eduService/front/getCourseInfo/${courseId}`,
      method: 'get'
    })
  },
}
